package com.qch.rabbitmq.demo.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author qch
 * @Date 2021/5/14
 */
@Configuration
public class RabbitConfig {
    @Bean
    public Queue queue() { return QueueBuilder.nonDurable("queue.boot").build();}

}
